Summary:
The day-ahead market is the largest electricity market in Europe by traded volume, yet up-to-date simulation methodologies for reproducible research remain limited. This paper presents iberian-day-ahead-market-simulator, a Python package to reproduce and analyze day-ahead market clearing in the Iberian market (which includes Spain and Portugal), with out-of-the-box compatibility with public data. It enables reproducible experimentation with real day-ahead market data and provides a foundation for research on price formation, counterfactual scenarios, and policy analysis. We validated the package with more than 190 day-ahead market simulations, showing close agreement with observed outcomes in terms of prices, volumes, and cross-border exchanges.
Spanish layman's summary:
Presentamos un simulador open source en Python para la casación del mercado diario en MIBEL. Usando datos públicos de OMIE, reproduce los resultados del mercado y facilita la investigación en formación de precios, intercambios y escenarios contrafactuales.
English layman's summary:
We present an open-source Python simulator for the Iberian day-ahead electricity market. Using OMIE public data, it reproduces real market outcomes and enables transparent research on prices, cross-border flows, and counterfactual scenarios.
Keywords: Electricity markets; Python; Day-ahead market; Euphemia; Market clearing; Reproducible research
JCR-JIF Impact Factor and WoS quartile: 1,900 - Q3 (2025)
DOI reference:
https://doi.org/10.1016/j.softx.2026.102985
Published on paper: September 2026.
Published on-line: August 2026.
Citation:
E. Insunza Díaz, J. Portela, A. Muñoz, "Iberian-day-ahead-market-simulator: A Python package to simulate the MIBEL day-ahead market clearing", SoftwareX, Vol. 35, pp. 102985, September 2026. [Online: August 2026] doi: 10.1016/j.softx.2026.102985